a3cb02753aeb1859e79013fe12c8401f99cac318,core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/support/Beans.java,Beans,getActiveDirectoryAuthenticator,#AbstractLdapAuthenticationProperties#,969
Before Change
if (StringUtils.isBlank(l.getDnFormat())) {
throw new IllegalArgumentException("Dn format cannot be empty/blank for active directory authentication");
}
final PooledConnectionFactory factory = Beans.newLdaptivePooledConnectionFactory(l);
final FormatDnResolver resolver = new FormatDnResolver(l.getDnFormat());
final Authenticator authn = new Authenticator(resolver, getPooledBindAuthenticationHandler(l, factory));
After Change
throw new IllegalArgumentException("Dn format cannot be empty/blank for active directory authentication");
}
final FormatDnResolver resolver = new FormatDnResolver(l.getDnFormat());
final Authenticator authn = new Authenticator(resolver, getPooledBindAuthenticationHandler(l, Beans.newLdaptivePooledConnectionFactory(l)));
if (l.isEnhanceWithEntryResolver()) {
authn.setEntryResolver(Beans.newLdaptiveSearchEntryResolver(l, Beans.newLdaptivePooledConnectionFactory(l)));
}
return authn;
}